package com.destiny.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.destiny.entity.Skillmonster;
import com.destiny.mapper.SkillmonsterMapper;
import com.destiny.service.SkillmonsterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author et2110
 * @since 2022-03-10
 */
@Service
public class SkillmonsterServiceImpl extends ServiceImpl<SkillmonsterMapper, Skillmonster> implements SkillmonsterService {

    @Autowired
    SkillmonsterMapper skillmonsterMapper;

    @Override
    public List<Skillmonster> getSkill(int sid) {
        QueryWrapper<Skillmonster> queryWrapper = new QueryWrapper<>();
        queryWrapper.select().eq("sid",sid);
        return skillmonsterMapper.selectList(queryWrapper);
    }
}
